/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2014-2019.
 * Description: kbox control functions, like stop and resume
 * Author: lichaoyue
 * Create: 2014-3-24
 */

#include <linux/atomic.h>

atomic_t kbox_stop = {.counter = 0};

void kbox_control_stop(void)
{
	atomic_set(&kbox_stop, 1);
}

void kbox_control_resume(void)
{
	atomic_set(&kbox_stop, 0);
}

int kbox_control_isstop(void)
{
	return (int)atomic_read(&kbox_stop);
}
